import axios from "axios"; 
// 获取省
export const fetchData =()=> axios.get('/province.json')
.then(res =>res.data.data.filter(item => item.parentId===0))

// 获取省

export const fetchCity =(provienceId)=> axios.get("/province.json")
.then(res =>res.data.data.filter(item=>item.parentId===provienceId ))

// 获取县

export const fetchCounty =(provienceId)=> axios.get("/province.json")
.then(res =>res.data.data.filter(item=>item.parentId===provienceId ))